Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Language Guide / Part 3 - Appendixes
Appendix B - Scriptable Text Editor Dictionary / Scriptable Text Editor Object Class Definitions


File

An object of class File contains the data for a Scriptable Text Editor document. When a file object is opened, a corresponding document object is created.
(Only open documents are Scriptable Text Editor document objects.) When
a document object is saved, the data for the document is saved in the corresponding file object, which is represented by a Scriptable Text Editor document icon on the desktop.

PROPERTIES
Name
The name of the file.
Class: String of the form "Disk:Folder1:Folder2:...:Filename" (see "Notes")
Modifiable? No
ELEMENT CLASSES
None

COMMANDS HANDLED
Open, Print

DEFAULT VALUE CLASS RETURNED
None

EXAMPLE
tell application "Scriptable Text Editor"   print file "MyDisk:Status Reports:Status - 11/12/92"end tell
NOTES
To specify the name of a file, use a string of the form "Disk:Folder1:Folder2:
...:Filename"
; for details, see "References to Files," which begins on page 143. You can also specify a string with only a filename ("Filename"). In this case, AppleScript attempts to find the file in the current directory.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996